package com.zshan.clinic.mini.controller;


import com.zshan.clinic.admin.entity.vo.ClinicDoctorDictVo;
import com.zshan.clinic.admin.service.config.EmpScheduleService;
import com.zshan.clinic.common.response.RestResp;
import com.zshan.clinic.mini.entity.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 充值档位
 */
@RestController
@RequestMapping("/emp/schedule")
public class EmpScheduleController extends AbstractController {

    @Autowired
    private EmpScheduleService empScheduleService;

    /**
     * 查询挂号常量列表
     * @param
     * @return
     */
    @GetMapping("/getDoctorDict")
    public RestResp<ClinicDoctorDictVo> getDoctorDict() {
        UserInfo userInfo = getUserInfo();
        ClinicDoctorDictVo doctorDictVo = empScheduleService.getDoctorDict(userInfo.getClinicId());
        return RestResp.SUCCESS(doctorDictVo);
    }

}
